var $ = require('../../../utils/helper.js'), that = null
//test.js  
//获取应用实例  
var app = getApp()

Page({
  data: {
  },
  onLoad(e) {
    that=this
  },
  onShow: function () {
    $.check(that)
  },
  onReady: function () {

  },
  init: function () {
    that.school_list()
  },
  school_list:function(){
    $.post("school/school/lists",null,function(list){
      that.setData({school_list:list})
    })
  },
  setschool:function(e){
    wx.setStorageSync("school_id", e.currentTarget.dataset.id)
    wx.navigateBack({
      
    })
  }
}) 